import { ref } from "vue";

// 计数器功能
const counter = () => {
  const count = ref(3);
  const add = () => {
    count.value++;
  };
  const minus = () => {
    count.value--;
  };
  return [count, add, minus];
};

export default counter;
